package alpaca.util;

/**
 * This class will hold an object and an enum explaining what the message is holding and why.
 * The class is supposed to be sent in-house.
 */
public class SystemMessage {
	public enum Type {
		CONN_AMOUNT,
		SERV_STATUS,
		UPDATE_CONN,
		DISCONNECT,
		UPDATE_USERS,
		UPDATE_DB_CONFIG,
		ERROR_MESSAGE,
		MESSAGE_LOG,
	}
	private Object obj;
	private Type type;
	
	public SystemMessage(Object obj, Type type) {
		this.obj=obj;
		this.type=type;
	}

	public Object getObject() {
		return obj;
	}

	public Type getType() {
		return type;
	}
}
